<?php
namespace catchAdmin\stock\model\search;

trait MoveSearch
{
    public function searchGoodsNameAttr($query, $value, $data)
    {
        return $query->whereLike('goods_name', $value);
    }
    public function searchTrayIdAttr($query, $value, $data)
    {
        return $query->whereLike('tray_id', $value);
    }
    public function searchMoveCodeAttr($query, $value, $data)
    {
        return $query->where('move_code', $value);
    }
    public function searchMoveIdAttr($query, $value, $data)
    {
        return $query->where('move_id', $value);
    }
}